package com.itheima.service;






import com.itheima.pojo.ShoppingCart;
import com.itheima.vo.LoginVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author itheima
 * @since 2022-05-03
 */

public interface ShoppingCardService {

    /**
     * 购物车列表
     * @return
     */
    List<ShoppingCart> getList();

    /**
     * 删除购物车商品
     * @param dishId
     * @param setMealId
     * @return
     */
    Boolean removeByDishIdOrSetMealId(String dishId,String setMealId);

    /**
     * 添加到购物车
     * @param shoppingCart
     * @return
     */
    Boolean addToCart(ShoppingCart shoppingCart);

    /**
     * 清空购物车
     * @return
     */
    Boolean removeAll();
}
